﻿using System;
using System.Collections;
using System.Collections.Generic;
using T.FAS.Runtime.Metadata.Entity;

namespace T.FAS.Runtime.Action.Dao
{
    public class ActionMetaDataMethodParamLogic : IActionMetaDataMethodParamDao
    {
        //IActionMetaDataMethodParamDao actionMetaDataMethodParamDao = DaoService.GetInstance("sqlmap_FAS_Action").GetDao<IActionMetaDataMethodParamDao>();

        IActionMetaDataMethodParamDao actionMetaDataMethodParamDao = DaoFactory.GetDaoFactory<IActionMetaDataMethodParamDao>().Instance;
        public void AddActionMetaDataMethodParam(ActionMetaDataMethodParam actionParam)
        {
            actionMetaDataMethodParamDao.AddActionMetaDataMethodParam(actionParam);
        }

        public void AddActionMetaDataMethodParamList(ArrayList actionParams)
        {
            actionMetaDataMethodParamDao.AddActionMetaDataMethodParamList(actionParams);
        }

        public void DeleteActionMetaDataMethodParam(string actionParamID)
        {
            actionMetaDataMethodParamDao.DeleteActionMetaDataMethodParam(actionParamID);
        }

        public List<ActionMetaDataMethodParam> GetActionMetaDataMethodParamByFilter(Dictionary<string, string> filter)
        {
            return actionMetaDataMethodParamDao.GetActionMetaDataMethodParamByFilter(filter);
        }

        public ActionMetaDataMethodParam GetActionMetaDataMethodParamByID(string actionParamID)
        {
            return actionMetaDataMethodParamDao.GetActionMetaDataMethodParamByID(actionParamID);
        }

        public void UpdateActionMetaDataMethodParam(ActionMetaDataMethodParam actionParam)
        {
            actionMetaDataMethodParamDao.UpdateActionMetaDataMethodParam(actionParam);
        }
    }
}
